/**
 * Arcdialog组件
 */
var Arcdialog=function(){
	return {
		/**
	       确认信息框
	    */
	    confirm : function (content,left,top,width,height,yesFun) {
		    return artDialog({
		        id: 'Confirm',
		        icon: 'question',
		        left:left,
				top:top,
				padding:'10px 15px',
				width:width,
				height:height,
		        fixed: true,
		        lock: true,
		        opacity: .1,
		        content: content,
		        ok: yesFun,
		        cancel:true
		    });
	   },
	   /**
		 提示信息对话框
		*/
		tips : function (content,left,top,width,height,time) {
		return artDialog({
		    id: 'Tips',
		    left:left,
			top:top,
			padding: '10px 15px',
			width:width,
			height:height,
		    title: false,
		    cancel: false,
		    fixed: true,
		    lock: true
		})
		.content('<div style="padding: 0 1em;">' + content + '</div>')
		.time(time || 1);
		},
		/**
		   警告信息框
		*/
		alert : function (content,left,top,width,height) {
		    return artDialog({
		        id: 'Alert',
		        icon: 'warning',
		        left:left,
				top:top,
				width:width,
				height:height,
		        fixed: true,
		        lock: true,
		        content: content,
		        ok: true
		    });
		},
		/**
		 * 添加、修改等操作弹出框
		 */
		operate:function(id,title,left,top,width,height,okFun,cancelFun){
			return artDialog({
	            id:id,
			    title: title,
			    left:left,
				top:top,
			    width: width,
			    height: height,
			    padding:'10px 15px',
			    ok: okFun,
			    cancel:cancelFun
		    });
		}
	};
}();